<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

/**
 * @author sonnk
 * @copyright 2011
 */
class home extends CI_Controller {
	function __construct(){
		parent::__construct();			
	    $this->load->model();
		$this->pub->write('title',lang('title_task'));
	}
    function  _remap($method, $params = array()){
        if(method_exists($this, $method)){
            return call_user_func_array(array($this, $method), $params);
        }
        $this->_view();
    }
	function _view(){      
		$data = new stdClass();;
        $content = $this->load->view('view',$data,true);
        $this->pub->write('content',$content,true);
        $this->pub->render();
	}
	function tt(){
        $this->load->model();
        $this->model->Gets();
    }
}